﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// Simple Service Administration Tool for WinNT based systems.
// Copyright © 2010 - Silvan Gehrig
// 
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// 
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
// 
// Author:
//  Silvan Gehrig
//
// ---------------------------------------------------------------------
#endregion

#region Usings

using System;
using System.Runtime.Serialization;

#endregion

namespace SSATool.DL.Common.Dto
{
    /// <summary>
    /// Specifies the reason of a changed service controller.
    /// </summary>
    /// <remarks>This class represents a POCO for the data transfer.</remarks>
    [DataContract]
    public enum ServiceControllerChangeReason
    {
        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        /// <summary>
        /// A new service has been added to the service list.
        /// </summary>
        [EnumMember]
        Added = 0,

        /// <summary>
        /// The service has been deleted from the service list.
        /// </summary>
        [EnumMember]
        Deleted = 1,

        /// <summary>
        /// A property or the state of the service has changed.
        /// </summary>
        [EnumMember]
        Updated = 2,

        #endregion
    }
}
